<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>My Project: com.studypartner.util.SystemUiHider Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">My Project
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>com</b></li><li class="navelem"><a class="el" href="namespacecom_1_1studypartner.html">studypartner</a></li><li class="navelem"><a class="el" href="namespacecom_1_1studypartner_1_1util.html">util</a></li><li class="navelem"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html">SystemUiHider</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">com.studypartner.util.SystemUiHider Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for com.studypartner.util.SystemUiHider:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.png" usemap="#com.studypartner.util.SystemUiHider_map" alt=""/>
  <map id="com.studypartner.util.SystemUiHider_map" name="com.studypartner.util.SystemUiHider_map">
<area href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_base.html" alt="com.studypartner.util.SystemUiHiderBase" shape="rect" coords="0,56,283,80"/>
<area href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_honeycomb.html" alt="com.studypartner.util.SystemUiHiderHoneycomb" shape="rect" coords="0,112,283,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">interface &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecom_1_1studypartner_1_1util_1_1_system_ui_hider_1_1_on_visibility_change_listener.html">OnVisibilityChangeListener</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9e96cdb43b448346c7bf598afb7ceab2"><td class="memItemLeft" align="right" valign="top">abstract void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a9e96cdb43b448346c7bf598afb7ceab2">setup</a> ()</td></tr>
<tr class="separator:a9e96cdb43b448346c7bf598afb7ceab2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbddbbbd375fcdc9106e401d6d51b75b"><td class="memItemLeft" align="right" valign="top">abstract boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#afbddbbbd375fcdc9106e401d6d51b75b">isVisible</a> ()</td></tr>
<tr class="separator:afbddbbbd375fcdc9106e401d6d51b75b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add346302175f89f144fdb2109db3abaf"><td class="memItemLeft" align="right" valign="top">abstract void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#add346302175f89f144fdb2109db3abaf">hide</a> ()</td></tr>
<tr class="separator:add346302175f89f144fdb2109db3abaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b1c153a107caa9f1559f79a8df09601"><td class="memItemLeft" align="right" valign="top">abstract void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a4b1c153a107caa9f1559f79a8df09601">show</a> ()</td></tr>
<tr class="separator:a4b1c153a107caa9f1559f79a8df09601"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9112c003e90c9063f801f26e7bd6a18"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#af9112c003e90c9063f801f26e7bd6a18">toggle</a> ()</td></tr>
<tr class="separator:af9112c003e90c9063f801f26e7bd6a18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ee45d4c1ac70419eba1651fd0ef7c6d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a4ee45d4c1ac70419eba1651fd0ef7c6d">setOnVisibilityChangeListener</a> (<a class="el" href="interfacecom_1_1studypartner_1_1util_1_1_system_ui_hider_1_1_on_visibility_change_listener.html">OnVisibilityChangeListener</a> listener)</td></tr>
<tr class="separator:a4ee45d4c1ac70419eba1651fd0ef7c6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a86c60c3b87801057146777ec9da48ae2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html">SystemUiHider</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a86c60c3b87801057146777ec9da48ae2">getInstance</a> (Activity activity, View anchorView, int flags)</td></tr>
<tr class="separator:a86c60c3b87801057146777ec9da48ae2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ad9673dbe4b6bf535e3434f244bc35ba1"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#ad9673dbe4b6bf535e3434f244bc35ba1">FLAG_LAYOUT_IN_SCREEN_OLDER_DEVICES</a> = 0x1</td></tr>
<tr class="separator:ad9673dbe4b6bf535e3434f244bc35ba1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a268145fefbaa4533ca110f57eb8e6990"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a268145fefbaa4533ca110f57eb8e6990">FLAG_FULLSCREEN</a> = 0x2</td></tr>
<tr class="separator:a268145fefbaa4533ca110f57eb8e6990"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8904a4e41ec149df724727b0c04ef388"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a8904a4e41ec149df724727b0c04ef388">FLAG_HIDE_NAVIGATION</a> = <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a268145fefbaa4533ca110f57eb8e6990">FLAG_FULLSCREEN</a> | 0x4</td></tr>
<tr class="separator:a8904a4e41ec149df724727b0c04ef388"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ad6779977dacb890e17b107287f1e43d5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad6779977dacb890e17b107287f1e43d5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SystemUiHider</b> (Activity activity, View anchorView, int flags)</td></tr>
<tr class="separator:ad6779977dacb890e17b107287f1e43d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a3a7d943ef066e53212168361bfab1980"><td class="memItemLeft" align="right" valign="top">Activity&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a3a7d943ef066e53212168361bfab1980">mActivity</a></td></tr>
<tr class="separator:a3a7d943ef066e53212168361bfab1980"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84283d81b621640652c2295429e55ec2"><td class="memItemLeft" align="right" valign="top">View&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a84283d81b621640652c2295429e55ec2">mAnchorView</a></td></tr>
<tr class="separator:a84283d81b621640652c2295429e55ec2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab39fb8df566e9b9899054d7f775f02b3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#ab39fb8df566e9b9899054d7f775f02b3">mFlags</a></td></tr>
<tr class="separator:ab39fb8df566e9b9899054d7f775f02b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18fbc612aa751d37e2d4f41a132a9568"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfacecom_1_1studypartner_1_1util_1_1_system_ui_hider_1_1_on_visibility_change_listener.html">OnVisibilityChangeListener</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a18fbc612aa751d37e2d4f41a132a9568">mOnVisibilityChangeListener</a> = sDummyListener</td></tr>
<tr class="separator:a18fbc612aa751d37e2d4f41a132a9568"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A utility class that helps with showing and hiding system UI such as the status bar and navigation/system bar. This class uses backward-compatibility techniques described in <a href="http://developer.android.com/training/backward-compatible-ui/index.html">Creating Backward-Compatible UIs</a> to ensure that devices running any version of ndroid OS are supported. More specifically, there are separate implementations of this abstract class: for newer devices, <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a86c60c3b87801057146777ec9da48ae2">getInstance</a> will return a <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_honeycomb.html">SystemUiHiderHoneycomb</a> instance, while on older devices <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a86c60c3b87801057146777ec9da48ae2">getInstance</a> will return a <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_base.html">SystemUiHiderBase</a> instance. </p>
<p>For more on system bars, see &lt;a href= "http://developer.android.com/design/get-started/ui-overview.html#system-bars" </p>
<blockquote class="doxtable">
<p>System Bars.</p>
<p></p>
</blockquote>
<dl class="section see"><dt>See Also</dt><dd>android.view.View::setSystemUiVisibility(int) </dd>
<dd>
android.view.WindowManager.LayoutParams::FLAG_FULLSCREEN </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a86c60c3b87801057146777ec9da48ae2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html">SystemUiHider</a> com.studypartner.util.SystemUiHider.getInstance </td>
          <td>(</td>
          <td class="paramtype">Activity&#160;</td>
          <td class="paramname"><em>activity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">View&#160;</td>
          <td class="paramname"><em>anchorView</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Creates and returns an instance of <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html">SystemUiHider</a> that is appropriate for this device. The object will be either a <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_base.html">SystemUiHiderBase</a> or <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_honeycomb.html">SystemUiHiderHoneycomb</a> depending on the device.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">activity</td><td>The activity whose window's system UI should be controlled by this class. </td></tr>
    <tr><td class="paramname">anchorView</td><td>The view on which <a class="el" href="">View#setSystemUiVisibility(int)</a> will be called. </td></tr>
    <tr><td class="paramname">flags</td><td>Either 0 or any combination of <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a268145fefbaa4533ca110f57eb8e6990">FLAG_FULLSCREEN</a>, <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a8904a4e41ec149df724727b0c04ef388">FLAG_HIDE_NAVIGATION</a>, and <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#ad9673dbe4b6bf535e3434f244bc35ba1">FLAG_LAYOUT_IN_SCREEN_OLDER_DEVICES</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="add346302175f89f144fdb2109db3abaf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract void com.studypartner.util.SystemUiHider.hide </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Hide the system UI. </p>

<p>Implemented in <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_honeycomb.html#ace2c8d36517d517732fd6814f0793ef0">com.studypartner.util.SystemUiHiderHoneycomb</a>, and <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_base.html#a78ae9d406186ff8efec579594289a578">com.studypartner.util.SystemUiHiderBase</a>.</p>

</div>
</div>
<a class="anchor" id="afbddbbbd375fcdc9106e401d6d51b75b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract boolean com.studypartner.util.SystemUiHider.isVisible </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns whether or not the system UI is visible. </p>

<p>Implemented in <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_honeycomb.html#ab5f081dccb8f727d8e5c03f9a92b6db1">com.studypartner.util.SystemUiHiderHoneycomb</a>, and <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_base.html#a3f842384af55cbb2cff727d7269d011e">com.studypartner.util.SystemUiHiderBase</a>.</p>

</div>
</div>
<a class="anchor" id="a4ee45d4c1ac70419eba1651fd0ef7c6d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.studypartner.util.SystemUiHider.setOnVisibilityChangeListener </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="interfacecom_1_1studypartner_1_1util_1_1_system_ui_hider_1_1_on_visibility_change_listener.html">OnVisibilityChangeListener</a>&#160;</td>
          <td class="paramname"><em>listener</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Registers a callback, to be triggered when the system UI visibility changes. </p>

</div>
</div>
<a class="anchor" id="a9e96cdb43b448346c7bf598afb7ceab2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract void com.studypartner.util.SystemUiHider.setup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets up the system UI hider. Should be called from <a class="el" href="">Activity#onCreate</a>. </p>

<p>Implemented in <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_honeycomb.html#accac6876c54c8121880a6982dd1c5062">com.studypartner.util.SystemUiHiderHoneycomb</a>, and <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_base.html#a8cb7ea6e9093609bdff1859b82c21e89">com.studypartner.util.SystemUiHiderBase</a>.</p>

</div>
</div>
<a class="anchor" id="a4b1c153a107caa9f1559f79a8df09601"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">abstract void com.studypartner.util.SystemUiHider.show </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Show the system UI. </p>

<p>Implemented in <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_honeycomb.html#a2520603c1a6dbbb6bb90010c6bc1bc3b">com.studypartner.util.SystemUiHiderHoneycomb</a>, and <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider_base.html#a6f22cf370b42e1ac31c0f5161e8e8aa5">com.studypartner.util.SystemUiHiderBase</a>.</p>

</div>
</div>
<a class="anchor" id="af9112c003e90c9063f801f26e7bd6a18"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.studypartner.util.SystemUiHider.toggle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Toggle the visibility of the system UI. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a268145fefbaa4533ca110f57eb8e6990"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.studypartner.util.SystemUiHider.FLAG_FULLSCREEN = 0x2</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>When this flag is set, <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a4b1c153a107caa9f1559f79a8df09601">show()</a> and <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#add346302175f89f144fdb2109db3abaf">hide()</a> will toggle the visibility of the status bar. If there is a navigation bar, show and hide will toggle low profile mode. </p>

</div>
</div>
<a class="anchor" id="a8904a4e41ec149df724727b0c04ef388"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.studypartner.util.SystemUiHider.FLAG_HIDE_NAVIGATION = <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a268145fefbaa4533ca110f57eb8e6990">FLAG_FULLSCREEN</a> | 0x4</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>When this flag is set, <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a4b1c153a107caa9f1559f79a8df09601">show()</a> and <a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#add346302175f89f144fdb2109db3abaf">hide()</a> will toggle the visibility of the navigation bar, if it's present on the device and the device allows hiding it. In cases where the navigation bar is present but cannot be hidden, show and hide will toggle low profile mode. </p>

</div>
</div>
<a class="anchor" id="ad9673dbe4b6bf535e3434f244bc35ba1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.studypartner.util.SystemUiHider.FLAG_LAYOUT_IN_SCREEN_OLDER_DEVICES = 0x1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>When this flag is set, the <a class="el" href="">android.view.WindowManager.LayoutParams#FLAG_LAYOUT_IN_SCREEN</a> flag will be set on older devices, making the status bar "float" on top of the activity layout. This is most useful when there are no controls at the top of the activity layout. </p>
<p>This flag isn't used on newer devices because the <a href="http://developer.android.com/design/patterns/actionbar.html">action bar</a>, the most important structural element of an Android app, should be visible and not obscured by the system UI. </p>

</div>
</div>
<a class="anchor" id="a3a7d943ef066e53212168361bfab1980"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Activity com.studypartner.util.SystemUiHider.mActivity</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The activity associated with this UI hider object. </p>

</div>
</div>
<a class="anchor" id="a84283d81b621640652c2295429e55ec2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">View com.studypartner.util.SystemUiHider.mAnchorView</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The view on which <a class="el" href="">View#setSystemUiVisibility(int)</a> will be called. </p>

</div>
</div>
<a class="anchor" id="ab39fb8df566e9b9899054d7f775f02b3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.studypartner.util.SystemUiHider.mFlags</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The current UI hider flags.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a268145fefbaa4533ca110f57eb8e6990">FLAG_FULLSCREEN</a> </dd>
<dd>
<a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#a8904a4e41ec149df724727b0c04ef388">FLAG_HIDE_NAVIGATION</a> </dd>
<dd>
<a class="el" href="classcom_1_1studypartner_1_1util_1_1_system_ui_hider.html#ad9673dbe4b6bf535e3434f244bc35ba1">FLAG_LAYOUT_IN_SCREEN_OLDER_DEVICES</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a18fbc612aa751d37e2d4f41a132a9568"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfacecom_1_1studypartner_1_1util_1_1_system_ui_hider_1_1_on_visibility_change_listener.html">OnVisibilityChangeListener</a> com.studypartner.util.SystemUiHider.mOnVisibilityChangeListener = sDummyListener</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>The current visibility callback. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>E:/Myworkspace/JAVA/StudyPartner/src/com/studypartner/util/SystemUiHider.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Apr 4 2013 20:21:09 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
